# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=curtail
_pkgname=Curtail
pkgver=1.8.0
pkgrel=0
pkgdesc="Simple & useful image compressor"
url="https://github.com/Huluti/Curtail"
arch="noarch"
license="GPL-3.0-or-later"
depends="
	jpegoptim
	libwebp
	pngquant
	py3-gobject3
	"
makedepends="
	appstream-glib
	desktop-file-utils
	gettext
	gtk+3.0-dev
	meson
	py3-gobject3-dev
	python3
	"
source="https://github.com/Huluti/Curtail/archive/$pkgver/curtail-$pkgver.tar.gz"
subpackages="$pkgname-lang"

builddir="$srcdir/$_pkgname-$pkgver"

build() {
	abuild-meson . build
	meson compile -C build
}

check() {
	meson test --no-rebuild --print-errorlogs -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
6a8a081c0fe1b780b50c55a90f70c4d4514c49941eb9fd5924897e3961aa718af71010e8d210030e1b6028c2e33d0d19dcca5cbdcf51463b5a24d6d2e86c196c  curtail-1.8.0.tar.gz
"
